<?php echo '<?xml version="1.0"';?> encoding="<?php echo isset($feed['encoding']) ? $feed['encoding'] : DEFAULT_CHARSET ?>"?>
<!-- generator="pixel-app" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title><?php echo htmlentities($feed['title'], DEFAULT_CHARSET) ?></title>
	<link><?php echo $feed['link'] ?></link>
	<description><?php echo htmlentities($feed['description'], DEFAULT_CHARSET) ?></description>
	<pubDate><?php echo date('r', $feed['publish_date']) ?></pubDate>

	<generator>pixel-app</generator>
	<language><?php echo isset($feed['language']) ? $feed['language'] : 'en' ?></language>
<?php 
// start of items 
if ( !empty($feed['items']) && is_array($feed['items']) )
{
    foreach($feed['items'] as $item)
    {
?>	
	<item>
		<title><?php echo htmlentities(strip_tags($item['title']), DEFAULT_CHARSET) ?></title>
		<link><?php echo $item['link'] ?></link>		
		<pubDate><?php echo date('r', $item['publish_date']) ?></pubDate>
		<dc:creator><?php echo $item['author'] ?></dc:creator>		
		<guid isPermaLink="false"><?php echo $item['guid'] ?></guid>
		<description><![CDATA[<?php echo strip_tags($item['description']) ?>]]></description>
			<content:encoded><![CDATA[<?php echo $item['content_encoded'] ?>]]></content:encoded>
	</item>	
<?php 
    }
} 
?>		
	</channel>
</rss>